package commands

import (
	"project/design/command/recievers"
)

type GateOpenCommand struct {
	*recievers.Gate
}

func CreateGateOpenCommand(gate *recievers.Gate) *GateOpenCommand {
	return &GateOpenCommand{gate}
}

func (goc *GateOpenCommand) Execute() {
	goc.Open()
}

func (goc *GateOpenCommand) Undo() {
	goc.Close()
}
